//
//  LMFinanceEnum.h
//  WelfareManager
//
//  Created by longmin on 17/3/28.
//  Copyright © 2017年 timtian. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    LMFinanceTypeTopUp = 1,                 //1充值
//    LMFinanceTypePay,                     //2支付（站点转账到会员账户）
    LMFinanceTypeBuy = 3,                   //3采购
    LMFinanceTypeService = 4,               //4服务费
    LMFinanceTypeOrderService = 5,          //5订单服务费
    LMFinanceTypeFreight = 9,               //6.运费（会员购买平台商品的运费）
//    LMFinanceTypeWithdraw,              //6提现
//    LMFinanceTypeWithdrawCommission,    //7提现手续费
//    LMFinanceTypeTopupToStore,          //8.给站点充值
}LMFinanceType;

typedef enum {
    LMStoreFinanceTypePay = 1,                  //支付
    LMStoreFinanceTypeTopup,                    //充值
    LMStoreFinanceTypeBuy,                      //采购
    LMStoreFinanceTypeWithdraw,                 //提现
    LMStoreFinanceTypeWithdrawCommission,       //提现手续费
    LMStoreFinanceTypeFreight                   //运费
}LMStoreFinanceType;

typedef enum {
    LMFinanceTimeToday = 1,         //今天
    LMFinanceTimeYesterday,         //昨天
    LMFinanceTimeAweek,             //一周
    LMFinanceTimeAmonth,            //一个月
    LMFinanceTimeThreemonth         //3个月
}LMFinanceTime;

typedef enum {
    LMAccountTypeBank = 1,      //银行卡
    LMAccountTypeAliPay         //支付宝
}LMAccountType;

typedef enum {
    LMAccountEditTypeDel = 1,   //删除
    LMAccountEditTypeEdit,      //修改
    LMAccountEditTypeAdd        //新增
}LMAccountEditType;


typedef enum {
    LMStoreLisAccountType = 1,  //积分站点
    LMStoreLisCardType          //卡券站点
}StoreListType;

typedef enum {
    LMWithdrawStateCheckPassed = 1,         //1 审核通过
    LMWithdrawStateCheckFailed,             //2 审核失败
    LMWithdrawStateInCheck                  //3 审核中
}LMWithdrawState;


@interface LMFinanceEnum : NSObject

@property(nonatomic, strong) NSArray *financeTypes;
@property(nonatomic, strong) NSArray *financeTimes;
@property(nonatomic, strong) NSArray *accountTypes;
@property(nonatomic, strong) NSArray *storeListTypes;
@property(nonatomic, strong) NSArray *withdrawStates;
@property(nonatomic, strong) NSArray *storeFinanceTypes;

+ (instancetype)financeEnum;

/** 获取财务类型对应的字符串 */
- (NSString *)financeType:(LMFinanceType)type;
/** 获取对应时间的字符串 */
- (NSString *)financeTime:(LMFinanceTime)time;
/** 获取提现账户类型对应的字符串 */
- (NSString *)accountType:(LMAccountType)type;
/** 获取会员站点类型对应的字符串 */
- (NSString *)storeListType:(StoreListType)type;
/** 获取提现状态对应的字符串 */
- (NSString *)withdrawStates:(LMWithdrawState)state;
/** 获取站点财务明细类型对应的字符串 */
- (NSString *)storeFinanceType:(LMStoreFinanceType)type;

@end
